package com.qtcm.nas.fyx.huiyuantianjia.service.impl;

import com.qtcm.nas.fyx.huiyuantianjia.dao.IMemberDao;
import com.qtcm.nas.fyx.huiyuantianjia.pojo.*;
import com.qtcm.nas.fyx.huiyuantianjia.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("memberService")
public class MemberService implements IMemberService {

    @Autowired
    @Qualifier("memberDao")
    private IMemberDao memberDao;

    @Override
    public void addMember(MemberShip memberShip) {
        memberDao.addMember(memberShip);
    }

    @Override
    public int findhyid(String hynm) {
        return memberDao.findhyid(hynm);
    }

    @Override
    public void addCar(Car_fyx car_fyx) {
        memberDao.addCar(car_fyx);
    }

    @Override
    public void addCard(Cz_Cards cz_cards) {
        memberDao.addCard(cz_cards);
    }

    @Override
    public void addOrders(Orders_fyx orders_fyx) {
        memberDao.addOrders(orders_fyx);
    }
}
